﻿<Page x:Class="JPGResizer.Pages.Page1"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
	Title="选择文件/文件夹">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <DataGrid Name="lstFiles" IsReadOnly="True" AutoGenerateColumns="False" Margin="2">
            <DataGrid.Columns>
                <DataGridTextColumn Header="文件完整路径" Binding="{Binding FileFullpath}"/>
                <DataGridTextColumn Header="文件名" Binding="{Binding Filename}"/>
            </DataGrid.Columns>
        </DataGrid>
        <StackPanel VerticalAlignment="Top" Grid.Column="1">
            <Button Name="SelectFile" Content="选择文件" Click="SelectFile_Click" Margin="2"/>
            <Button Name="SelectFolder" Content="选择文件夹" Click="SelectFolder_Click" Margin="2"/>
        </StackPanel>
    </Grid>
</Page>
